package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.entity.AttrEntity;
import com.atguigu.gulimall.product.vo.AttrAttrGroupRelationDeleteVo;
import com.atguigu.gulimall.product.vo.AttrGroupWithAttrsVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * ???Է??
 *
 * @author Farewell
 * @email farewell777@foxmail.com
 * @date 2021-12-17 17:21:24
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    List<AttrEntity> getAllAttrByAttrGroup(Long attrgroupId);

    void deleteBatch(AttrAttrGroupRelationDeleteVo[] deleteVo);

    PageUtils getAttrNoRelation(Long attrgroupId, Map<String, Object> params);

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrs(Long catelogId);
}

